package cnm.control;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class PropertyHolder {
	private static final String CONF = System.getProperty("user.dir") + "/bin/test.properties";
	private static Properties properties;
	static {
		properties = new Properties();
		try {
			properties.load(new FileReader(CONF));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static String getDeviceIp() {
		return properties.getProperty("device.ip");
	}
}
